package cn.getech.data.development.mapper;

import cn.getech.data.development.dto.JobLinkDto;
import cn.getech.data.development.entity.JobLink;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface JobLinkMapper extends BaseMapper<JobLink> {
    List<JobLinkDto> selectListByMenuId(@Param("menuId") Long menuId, @Param("linkeType") Integer linkeType);

    void batchInsert(@Param("edges") List<JobLinkDto> edges);

    List<JobLink> selectByMenuIds(@Param("workMenuIds") Set<Long> workMenuIds);
}
